import request from '@/utils/request'

export default {
  getAllAdminByPage (queryData) {
    return request({
      url: '/park/admin/getAdminByPageVo',
      method: 'post',
      data: queryData  //转化json传递
    })
  },
  //根据id删除
  deleteById (id) {
    return request({
      url: `/park/admin/deleteById?id=${id}`,
      method: 'delete',
    })
  },
  getAdminById (id) {
    return request({
      url: `/park/admin/getAdminById?id=${id}`,
      method: 'get',
    })
  },
  //新增或修改
  addOrEdit (data) {
    return request({
      url: '/park/admin/saveSubmit',
      method: 'post',
      data: data  //转化json传递
    })
  },
  //解除禁用 禁用
  invalidOrRecovery (id) {
    return request({
      url: `/park/admin/invalidOrRecovery?id=${id}`,
      method: 'post',
    })
  },
  //
  // deleteById (id) {
  //   return request({
  //     url: `/eduservice/edu-teacher/delete/${id}`,
  //     method: 'delete',
  //   })
  // },
}
